//
//  BGDateFormaTool.m
//  bigMall
//
//  Created by LTOVE on 16/8/18.
//  Copyright © 2016年 thinklev. All rights reserved.
//

#import "BGDateFormaTool.h"

@implementation BGDateFormaTool

+ (NSString *)dateFormateWithDateStr:(NSString *)dateStr
{
   return  [BGDateFormaTool dateFormateWithDateStr:dateStr dateFormateStr:@"yyyy-MM-dd"];
}


+ (NSString *)dateFormateWithDateStr:(NSString *)dateStr dateFormateStr:(NSString *)formStr
{
    NSUInteger interDate = [dateStr integerValue];
    NSDate *date = [NSDate dateWithTimeIntervalSince1970:interDate];
    NSDateFormatter *dateForm = [[NSDateFormatter alloc]init];
    [dateForm setDateFormat:formStr];
    return  [dateForm stringFromDate:date];
}

@end
